//
// Created by JYL on 2024-05-23.
//

#ifndef INC_11_HAL_WHOLE_LED_H
#define INC_11_HAL_WHOLE_LED_H

#include "main.h"

typedef struct {
    uint8_t b1:1;
    uint8_t b2:1;
    uint8_t b3:1;
    uint8_t b4:1;
    uint8_t b5:1;
    uint8_t b6:1;
    uint8_t b7:1;
    uint8_t b8:1;
}bits;

typedef union {
    uint8_t hex;
    bits b;
}HexToBin;

void LED_Control(uint8_t led_Ctrl);

extern HexToBin led_ctrl;

#endif //INC_11_HAL_WHOLE_LED_H
